import {request} from 'umi'
interface URa{
    id:string
}

//分类
export let getClassIfy =()=>{
    return request('/catalog/index',{
        method:'get',
    }) 
}

//分类
export let getRightIfy =(id:URa)=>{
    console.log(id,'123215641231561');

    return request('/catalog/current',{
        method:'get',
        params:{id}
    }) 
}

//xq
export let getClassxqList =(id:string)=>{
    // console.log(id,'12321564123ssssssssssssss1561');
    return request('/goods/category',{
        method:'get',
        params:{id}
    }) 
}


//xqlist
export let getgoodxqList =(categoryId:string)=>{
    return request('/goods/list',{
        method:'get',
        params:{categoryId}
    }) 
}


//inp模糊搜索接口
export let getinpList =(keyword:string)=>{
    return request('/search/helper',{
        method:'get',
        params:{keyword}
    }) 
}
